#include<stdio.h>
double ball(int n)
{
	if(n==1)
	return 50;
	else 
	{
	return ball(n-1)/2;
    }
}
int main()
{
	int n=0;
	int h=100;
	scanf("%d",&n);
	printf("%.4lf ",ball(n));
	double sum=100;
	for(int i=2;i<=n;i++)
	{
		 sum+=ball(i-1)*2;
	}
	printf("%lf",sum);
}
